﻿using PlutoStudio.Modules;
using System;
using System.Collections.Generic;
using System.Text;
using PlutoStudio.Dependency;

namespace PlutoStudio.Runtime.Caching.Redis
{
    /// <summary>
    /// This modules is used to replace ABP's cache system with Redis server.
    /// </summary>
    [DependsOn(typeof(KernelModule))]
    public class RedisCacheModule : Module
    {

        public override void PreInitialize()
        {
            IocManager.Register<RedisCacheOptions>();
        }

        public override void Initialize()
        {
            IocManager.RegisterAssemblyByConvention(typeof(RedisCacheModule).Assembly);
        }
    }
}
